<!-- Content -->
<!--  -->
<div class="sign_wrapper">
    <div class="blockOverlay" onclick="javascript:$('.blockRegister').css({'display':'none'});$('.blockOverlay').css({'display':'none'});"></div>
    <div class="blockRegister">
        <div class="login-register form-area " style="">
            <div id="register-form">
                <form id="signin-form-reg" action="" method="post">
                    <h2 id="sign-registration">Registration<span onclick="javascript:$('.blockRegister').css({'display':'none'});$('.blockOverlay').css({'display':'none'});"></span></h2>
                    <label id="email-label">email address<input name="register[email]" id="email" style="<?=isset($form2->elements['email']->errors[0])?'border: 1px solid red;':''?>" value="<?=isset($form2->elements['email']->value)?$form2->elements['email']->value:''?>" type="text"/></label><br />
                    <label id="name-label">first name<input name="register[name]" id="name" style="<?=isset($form2->elements['name']->errors[0])?'border: 1px solid red;':''?>" value="<?=isset($form2->elements['name']->value)?$form2->elements['name']->value:''?>" type="text"/></label><br />
                    <label id="surname-label">last name<input name="register[surname]" id="surname" style="<?=isset($form2->elements['surname']->errors[0])?'border: 1px solid red;':''?>" value="<?=isset($form2->elements['surname']->value)?$form2->elements['surname']->value:''?>" type="text"/></label><br />
                    <label id="password-label">password<input name="register[password]" id="password" style="<?=isset($form2->elements['password']->errors[0])?'border: 1px solid red;':''?>" value="<?=isset($form2->elements['password']->value)?$form2->elements['password']->value:''?>" type="password"/></label><br />
                    <input id="signin-submit-button-register" class="reg" name="register[submit]" type="submit" value="Register"/>
                    <?=isset($form->elements['name']->errors[0])?'<script type="text/javascript">alert("Your name: '.$form->elements['name']->errors['0'].'");</script>':''?>
                </form>
            </div>
        </div>
    </div>
    <?php if((isset($form2->elements['email']->errors[0]))||(isset($form2->elements['name']->errors[0]))||(isset($form2->elements['surname']->errors[0]))||(isset($form2->elements['password']->errors[0]))){echo '<script type="text/javascript"> onload = function(){$(".blockRegister").css({"display":"block"});$(".blockOverlay").css({"display":"block"})};</script>';}?>
    <!-- Register form  -->
                <div id="signin-img">
                    <div id="signin-form">
                        <h2 id="form-text">Luxury brands. Hand-selected styles. Members-only prices.</h2>
                        <div id="signin-form-left">
                            <p>Member sign in</p>
                            <form id="signin-form-act" action="" method="post">
                                <label id="email-label">email address<input style="<?=isset($form->elements['email']->errors[0])?'border: 1px solid red;':''?>" value="<?=isset($form->elements['email']->value)?$form->elements['email']->value:''?>" name="signin[email]" id="email" type="text"/></label><br />
                                <label id="password-label">password<input name="signin[password]" id="password" type="password"/></label><br />
                                <label id="remember-label"><input id="remember" name="signin[persistent]" type="checkbox"/> Remember me</label><br />
                                <input type="hidden" name="signin[role]" value="login"/>
                                <input id="signin-submit-button" name="signin[submit]" type="submit" value="Sign in">
                            </form>

                        </div>
                        <div id="signin-form-right">
                            <h2>Become a Member</h2>
                            <p id="sigin-text-one">Instant access to today’s top designer labels, at up to 60% off retail.</p>
                            <p id="sigin-text-two">Membership is free, get inspired today!</p>
                            <a href="">Tell me more</a>
                            <? //isset($form->elements['email']->errors[0])?'<script type="text/javascript"> onload = function(){$(".blockRegister").css({"display":"block"});$(".blockOverlay").css({"display":"block"})};</script>':''?>
                            <span id="join-now-button" onclick="javascript:$('.blockRegister').css({'display':'block'});$('.blockOverlay').css({'display':'block'});">Join now</span>
                        </div>
                    </div>
                </div>

            <!-- End content -->
    <div id="signin-footer">
        <ul id="signin-footer-left">
            <li><a href="/about/">ABOUT</a></li>
            <li><a href="/contact/">CONTACT US</a></li>
            <li><a href="/faq/">FAQ</a></li>
            <li><a href="/secure/">SECURITY</a></li>
            <li><a href="/shipping/">SHIPPING</a></li>
            <li><a href="/exchange/">EXCHANGE POLICY</a></li>
        </ul>
        <ul id="signin-footer-right">
            <li>FOLLOW</li>
            <li id="social-">
                <?php $model = new Model_Manager(); ?>
                <a href="<?=$model->getSocial('twitter');?>" target="_blank">
                    <span class="social_icon twitter"></span>
                </a> 
                <a href="<?=$model->getSocial('facebook');?>" target="_blank">
                    <span class="social_icon facebook"></span>
                </a>
            </li>
            <li></li>
        </ul>
    </div>
</div>
